package com.hs.mapper;

import com.hs.entity.Ggao;
import com.hs.entity.Grade;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GgaoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Ggao record);

    int insertSelective(Ggao record);

    Ggao selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Ggao record);

    int updateByPrimaryKey(Ggao record);

    //查询公告信息列表
    public List<Ggao> findGgaoList(@Param("searchKey") String searchKey);
    //查询公告信息列表
    public List<Ggao> findGgaoList2(@Param("searchKey") String searchKey);
    //保存编辑公告
    public Integer saveeditggao(@Param("id")Integer id,@Param("title") String title,@Param("text") String text);
    //发布公告
    public Integer saveggao(@Param("teacherid")String teacherid,@Param("title") String title,@Param("text") String text);
    //撤回公告
    public Integer cancleggao(@Param("id") Integer id);
    //审核通过公告
    public Integer passggao(@Param("id") Integer id);
    //驳回公告
    public Integer nopassggao(@Param("id") Integer id);
}